using System;
using System.Collections.Generic;
using System.Text;

namespace Clanta.Core.Mail
{
    public class OutlookEmail
    {
        // Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application();
        // Microsoft.Office.Interop.Outlook._NameSpace oNameSpace;
        // Microsoft.Office.Interop.Outlook.MAPIFolder oOutboxFolder;
        //Microsoft.Office.Interop.Outlook._MailItem oMailItem;

        string recipients;

        public OutlookEmail(string recipientMailAdress, string recipientName)
        {
            //AddRecipient(recipientMailAdress);

            ////oApp = new Microsoft.Office.Interop.Outlook.Application();
            //oNameSpace = oApp.GetNamespace("MAPI");
            //oNameSpace.Logon(null, null, true, true);
            //oOutboxFolder = oNameSpace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderOutbox);

            //oMailItem = (Microsoft.Office.Interop.Outlook._MailItem)oApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);
            //oMailItem.Subject = "Feedback from QCon SF";
            //oMailItem.Body = string.Format("Dear {0}. \n\nThank you for being a part of QCon San Francisco 2007.\nWe now have the results from the presentations (the green/yellow/red voting) and have attached them for your information. \n\nKind regards, \nThe QCon Team \nKatrine Hofmann Gasser", recipientName);
        }

        
        public void AddRecipient(string recipient)
        {
            recipients += recipient + "; ";
        }

        public void AddAttachment(object source, string displayName)
        { 
         //oMailItem.Attachments.Add(source, Microsoft.Office.Interop.Outlook.OlAttachmentType.olByValue, oMailItem.Body.Length+1, displayName);
        }

        public void AabenMailIOutlook()
        {
            //oMailItem.To = recipients;
            ////oMailItem.SaveSentMessageFolder = oOutboxFolder;
            //oMailItem.Display(null);
        }
    }



}
